package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Getter
@Setter
public class SystemDictionaryItem {
    private Long id;
    //所属目录id
    private Long parentId;
    //标题
    private String title;
    //序号
    private Integer sequence;

    public String getJson() {
        HashMap map = new HashMap();
        map.put("id", this.id);
        map.put("title", this.title);
        map.put("sequence", this.sequence);
        String jsonString = JSON.toJSONString(map);
        return jsonString;
    }

}